package com.ts.api.module.api.entity.vo;

import com.ts.api.common.constant.api.ApiApplyQueryStatusEnum;
import lombok.Data;

/**
 *  进件主动查询结果-VO实体
 *
 *  @author Pan
 */
@Data
public class RespApiApplyQueryVO {

    /** 手机号md5 */
    private String phoneMd5;
    /** 进件状态 */
    private String status;

    public RespApiApplyQueryVO() {
        super();
    }

    public RespApiApplyQueryVO(String phoneMd5) {
        this.phoneMd5 = phoneMd5;
    }

    public RespApiApplyQueryVO(String phoneMd5, String status) {
        this.phoneMd5 = phoneMd5;
        this.status = status;
    }

    /**
     *  构建类
     *
     *  @param  phoneMd5
     *  @return RespV2ApiDataExchangeVO
     */
    public static RespApiApplyQueryVO create(String phoneMd5) {
        return new RespApiApplyQueryVO(phoneMd5);
    }

    /**
     *  构建类
     *
     *  @param  phoneMd5
     *  @param  statusEnum
     *  @return RespV2ApiDataExchangeVO
     */
    public static RespApiApplyQueryVO create(String phoneMd5, ApiApplyQueryStatusEnum statusEnum) {
        return new RespApiApplyQueryVO(phoneMd5, statusEnum.getType().toString());
    }
}
